<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<h1 id='hid'>aaaaaaaaaaaaaaaaaa</h1>
	<h1 class='hcls'>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</h1>
	<h1 class='hcls'>aaaaaaaaaaaaaaaaaaaaaaaaaaa</h1>
</body>
<script type="text/javascript">
	hidobjs=document.getElementsByClassName('hcls');
alert(hidobjs[0]);
hidobjs[0].style.background='#f00';




</script>
</html>